<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui" xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html" xmlns:constants="http://www.tuanzi.com/constants/tags">

    <p:commandButton value="新增特殊规则" icon="fa fa-save" style="width: 150px;margin-bottom: 10px"
                     actionListener="#{extraTemplateInfoBean.onAddSpecial}"
                     oncomplete="PF('adding').show()" disabled="#{extraTemplateInfoBean.isView()}"/>
    <div class="ui-g">
        <div class="ui-g-12 padding0">
            <p:dataTable id="specialDataTable" rowIndexVar="rowIndex" var="record" value="#{extraTemplateInfoBean.specialList}">
                <p:column headerText="操作">
                    <p:splitButton icon="fa fa-eye"
                                   process="@form" actionListener="#{extraTemplateInfoBean.onSeeSpecial(rowIndex)}"
                                   oncomplete="PF('adding').show()" update="@form" disabled="#{extraTemplateInfoBean.isView()}">
                        <p:menuitem value="删除" icon="fa fa-fw fa-remove"
                                    action="#{extraTemplateInfoBean.onDeleteSpecial(rowIndex)}"
                                    process="@this" update="specialDataTable">
                            <p:confirm header="删除" message="确定删除特殊模板？"/>
                        </p:menuitem>
                    </p:splitButton>
                </p:column>
                <p:column headerText="平台" style="text-align:center;">
                    <h:outputText value="#{record.platform}"/>
                </p:column>
                <p:column headerText="作用渠道" style="text-align:center;">
                    <h:outputText value="#{record.channel}"/>
                </p:column>
            </p:dataTable>
        </div>
    </div>

</ui:composition>